/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package yuhuibear.poat.test.entity.sub;

import java.util.Date;

import yuhuibear.poat.annotations.relation.View;

/**
 *
 * @author yuhuibear
 */
@View(name = "user_log", sqlToCreate = "select users.id as id, log222s.dsp as comment, users.name as who_name " +
"from users, log222s where users.id = log222s.owner_id")
public class UserLog {

    private Long id;
    private String whoName;
    private String comment;
    private Date time;

    public String toString (){
        return String.format("id : %s, own : %s, com : %s, %tss", id, whoName, comment, time);
    }
    /**
     * @return the id
     */
    public Long getId() {
        return id;
    }

    /**
     * @param id the id to set
     */
    public void setId(Long id) {
        this.id = id;
    }

    public String getWhoName() {
        return whoName;
    }

    public void setWhoName(String whoName) {
        this.whoName = whoName;
    }

    /**
     * @return the comment
     */
    public String getComment() {
        return comment;
    }

    /**
     * @param comment the comment to set
     */
    public void setComment(String comment) {
        this.comment = comment;
    }

    /**
     * @return the time
     */
    public Date getTime() {
        return time;
    }

    /**
     * @param time the time to set
     */
    public void setTime(Date time) {
        this.time = time;
    }
}
